package demo

import org.apache.spark.{SparkConf, SparkContext}

object DemoOne1 {

  def main(args: Array[String]): Unit = {

    val conf = new SparkConf().setAppName("aaa").setMaster("local")
    val sc = new SparkContext(conf)

    val value = sc.textFile("src\\main\\scala\\data\\user_visit_action.txt")
    val l = value.count()
    println("共有数据" + l + "条")

    sc.stop()
  }

}
